/*
 * @Author: Star linxinh@qq.com
 * @Date: 2023-04-04 09:32:32
 * @LastEditors: Star linxinh@qq.com
 * @LastEditTime: 2023-04-04 11:02:35
 * @FilePath: \LOG\main.c
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#include "module_debug.h"

#define TAG __FILE__

void pfunc()
{
    ModuleDebugInit(LOG_LEVEL_DEBUG);

    LOG_DBG(TAG, "log_debug %d \n",LOG_LEVEL_DEBUG);

    LOG_INFO(TAG, "log_info %d \n",LOG_LEVEL_INFO);

    LOG_WARN(TAG, "log_warn \n");

    LOG_ERR(TAG, "log_err \n");
}

int main(int argc, char *argv[])
{
    ModuleDebugInit(LOG_LEVEL_NONE);

    LOG_INFO(TAG, "log_info %d \n",LOG_LEVEL_INFO);

    LOG_WARN(TAG, "log_warn \n");

    LOG_ERR(TAG, "log_err \n");

    pfunc();

    return 0;
}
